package com.gis.exception;

import com.gis.enums.ApiErrorCode;

public class ApiException extends RuntimeException {
    private final int code;

    public ApiException(ApiErrorCode errorCode) {
        super(errorCode.getMessage());
        this.code = errorCode.getCode();
    }

    public int getCode() { return code; }
}